#ifndef LISTLTEMBOX_H
#define LISTLTEMBOX_H

#include <QWidget>

namespace Ui {
class ListltemBox;
}

class ListltemBox : public QWidget
{
    Q_OBJECT

public:
    explicit ListltemBox(QWidget *parent = nullptr);
    ~ListltemBox();
    void setMusicName(const QString& name);
    void setSinger(const QString& singer);
    void setAlbumName(const QString& albumName);
    void setLikeIcon(bool like);
    void enterEvent(QEvent *event);
    void leaveEvent(QEvent *event);


private:
    Ui::ListltemBox *ui;
private:
    bool   isLike;
public:
    void onLikeBtnClicked();
signals:
    void setIsLike(bool islike);
};

#endif // LISTLTEMBOX_H
